Electro-optical analysis of bacterial cells