Screening of the electron–phonon interaction in GaAs heterostructures