Synthesis and optimization of an active glass suitable for direct UV-writing applications