Electric and Thermal Transient Effects in Optical Devices