Avalanche Photodiodes for the CMS Electromagnetic Calorimeter