Performance of electron and photon triggers in ATLAS during LHC Run 2 (English)