Performance of prototypes for the ALICE electromagnetic calorimeter