Discharge of trapped electrons from MOS structures