Devotional cosmology: poetry, thermodynamics and popular astronomy, 1839-1889