On the Schrödinger-Maxwell equations under the effect of a general nonlinear term