The use of interparticle coordinates in electronic energy calculations for atoms and molecules