Phonon enhanced Kerr and Faraday rotations in two-dimensional electron systems