Method for tuning absorptivity of a guided-mode resonance grating through period-doubling index perturbation