mechanical theory of heat