Insights into the effect of distal histidine and water hydrogen bonding on NO ligation to ferrous and ferric heme: a DFT study