when a reaction in solution produces energy, what happens to the temperature of the solution?