The effects of water and pressure on velocities of elastic waves in a foliated rock