Text this: Selective area rare-earth doping of planar glass samples for monolithic integration of optically passive and active waveguides