Two-phase flow in micro and nanofluidic devices by