Pulse-shape based flow cytometry and cell sorting