Spherical nuclei in the local density approximation