Electron/proton separation and analysis techniques used in the AMS-02 (e++e-) flux measurement