Structural and dynamic properties of the heme pocket in myoglobin probed by optical spectroscopy