Study of a high-resolution infrared spectrometer by using an integrated multigrating structure