Luminescent materials based on thin metal oxide films doped with rare earth ions