Osmotically driven flows in microfluidic channels and their relation to sugar transport in plants