Substrate and cofactor binding to nitrile reductase