Microfluidics for pharmaceutical applications