Pyridine nucleotides and H2 as electron donors to the respiratory and photosynthetic electron-transfer chains and to nitrogenase in Anabaena heterocysts