Exploring Student and Expert Understanding of Thermodynamic Potentials, Legendre Transformations, and Independent Variables in Thermodynamics