Thermal analysis of electrochemical reactions