Threshold voltage variations in N-channel mos transistors and MOSFET-based sensors due to optical radiation