Selective binding of divalent cations toward heme proteins