Optimized central potentials for atomic ground-state wavefunctions