Control and recognition of anionic ligands in myoglobin