Tailored spectroscopic and optical properties in rare earth-activated glass–ceramics planar waveguides