Mean-field calculations of the ground states of exotic nuclei