Gas sensors based on photodiodes and phototransistors in the blue spectral range