Precisely Controlled Growth and Luminescence Properties of Rare-Earth Doped Semiconductors