Local thermodynamic derivation of Young's equation.