Investigating the local flexibility of functional residues in hemoproteins