Design and evolution of copper apatite catalysts for N-arylation of heterocycles with chloro- and fluoroarenes.