Effects of gas-liquid phase transitions on soundwave propagation: A molecular dynamics study