Interaction of electrons with interface phonons in GaAs/AlAs and GaAs/AlGaAs heterostructures