Use of Legendre transforms in chemical thermodynamics (IUPAC Technical Report)