Spectral control of optical gain in a rare earth-doped optical fiber using novel triple layered structures