Ion substitution in biological and synthetic apatites