how to calculate heat absorbed in a reaction