Cathodoluminescence and microprobe study of rare-earth elements in apatite