Simultaneously tuning the emission color and improving thermal stability via energy transfer in apatite-type phosphors