Text this: Thermodynamic analysis based on the second-order variations of thermodynamic potentials