Fast electrostatic diagnostic of an electron beam in a Penning-Malmberg trap