The effects of the atmosphere and oceans on the Earth's wobble — I. Theory