Structure, function and biosynthesis of O2-tolerant hydrogenases