Role of ATP hydrolysis and mechanism of substrate reduction in nitrogenase