Intensity fluctuations in a ring laser taking into consideration a spatial population-inversion grating