Analysis of light wave diffraction and amplification by reflection grating operating in the second-order Bragg regime. 2. Reflectivity and spectral characteristics of a grating