Synthesis, structure and photoluminescence properties of europium-, terbium-, and thulium-doped Ca3Bi(PO4)3 phosphors.