Dipole squeezing in the multi-photon Jaynes-Cummings model with and without the rotating-wave approximation