An analytic approximation for the energy levels of neutral atoms