Electron identification in and performance of the ND280 Electromagnetic Calorimeter