Simple analysis and working equations for the solidification of cylinders and spheres