Particle sorting in a microfluidic system