Theory of rotation of the rigid Earth