Thermodynamic interpretation of weathering indices and its application to engineering properties of rocks