The application of wave functions containing interelectron coordinates. I: The ground state energy of lithium