Influence of the protein matrix on intramolecular histidine ligation in ferric and ferrous hexacoordinate hemoglobins