Simulation of the influence of the core electrons by a pseudopotential I. atoms with one and two valence electrons