Temperature dependent characteristics of a PIN avalanche photodiode (APD) in Ge, Si and GaAs