Chemistry and the conservation of energy: The work of James Prescott Joule