ZnO and SnO2 one-dimensional sensors for detection of hazardous gases