Moisture and heat transport in hysteretic, inhomogeneous porous media: A matric head‐based formulation and a numerical model | Synapse