Acoustic phonon confinement by band inversion