Novel spectral narrowing technique based on intracavity self-adapted photorefractive grating