Oxygen binding to heme proteins in solution, encapsulated in silica gels, and in the crystalline state