Microfluidics for the treatment of hydrocephalus