Optically driven pumps and flow sensors for microfluidic systems