Electron-phonon scattering in the presence of a magnetic field in quasi-two-dimensional quantum-well structures