Acoustic-phonon propagation in rectangular semiconductor nanowires with elastically dissimilar barriers