Study of the mechanism of the influence of water on elastic wave propagation in amphibolites and some metamorphic rocks at high pressures and temperatures