Systematic formulation of thermodynamic properties in the NpT ensemble.