Apparatus for real-time measurement of particle size distribution