Strontium, nickel, cadmium, and lead substitution into calcite, studied by density functional theory.