William Thomson (1824–1907), Lord Kelvin, Physicist