An electrostatic barrier scrape-off layer for control of core plasma effluxes in tokamaks