Implementation and performance of the high level trigger electron and photon selection for the ATLAS experiment at the LHC