Semiclassical solutions for the nonlinear Schrödinger–Maxwell equations