Semiclassical states for NLS equations with magnetic potentials having polynomial growths