Description of two-electron atoms with correct cusp conditions