EPR, optical and luminescence studies on certain trivalent transition and rare earth ions doped polymers and phosphors