Thermogravitational Thermal Diffusion in Liquids. I. The Formal Theory