ESCA: Semi-empirical correlation between core-electron binding energy and valence-electron density including monopole, dipole and quadrupole forces