Electro-optical detection of charged particle beams