Direct calculation of ionization potentials of atoms and molecules: application to Ne