Useful thermal effects in electrochemical systems