Influence of plasmon resonance on the luminescence of titanium dioxide thin films doped with rare earth ions