Evolution of strength and physical properties of ultramafic and carbonate rocks under hydrothermal conditions