Rare-earth-doped Y3Al5O12 (YAG) nanophosphors: synthesis, surface functionalization, and applications in thermoluminescence dosimetry and nanomedicine