The Emergence of Theoretical Physics in the Second Half of the Nineteenth Century