An electrostatic beam for positron–gas scattering measurements