Atomic-scale bases for several properties of apatites.