Electron scattering in quantum wells subjected to an in-plane magnetic field