NADPH-generating systems in bacteria and archaea