Investigation on the confinement mechanism of optical GaAs phonons in AlGaAs heterostructures