Bridging Effective Stress and Soil Water Retention Equations in Deforming Unsaturated Porous Media: A Thermodynamic Approach