Ritz variational calculation for two-electron–one-photon transitions in helium