Prediction of core electron binding energies with a four-parameter equation