Bakerian Lecture. On the Statistical and Thermodynamical Relations of Radiant Energy