In situ and operando spectroscopy for assessing mechanism of gas sensing (review)