Mechanism of substrate reduction by nitrogenase