Using Infrared and Raman Spectroscopy to Analyze Gas–Solid Reactions