Configuration-interaction wave functions for two-electron systems