Analytical Solution for the Deformation of a Cylinder under Tidal Gravitational Forces