Electron efficiency measurements with the ATLAS detector using 2012 LHC proton–proton collision data