Particle identification: electrons and photons