Deformations and moments of inertia of actinide nuclei in the ground and shape isomeric states