A simple formula to calculate the ionization energies of two-, three-, and four-electron atomic ions