Open and closed microfluidics for biosensing