Divergent mechanisms of iron-containing enzymes for hydrocarbon biosynthesis