A Hamiltonian theory for an elastic earth: Canonical variables and kinetic energy