Principles governing Mg, Ca, and Zn binding and selectivity in proteins.