Semiclassical states for the nonlinear Schrödinger equation with the electromagnetic field