The principles of thermodynamics, with their applications to homogeneous and heterogeneous equilibria.