Ground state solutions for the nonlinear Schrödinger-Bopp-Podolsky system with critical Sobolev exponent