Characterization by X-ray absorption spectroscopy of the biosynthesis of the cofactors of nitrogenase