Solving the rotational Earth's equations in rectangular coordinates for a nonrigid Earth