Analytical solution for solute transport with depth‐dependent transformation or sorption coefficients