Spectroscopic Study of the Gas Detection Mechanism by Semiconductor Chemical Sensors