Multichannel theory of two-photon single and double ionization of helium