Particle sorting and automatic particle identification for advanced medical diagnostics