Microfluidic studies of fluid-fluid interaction and multiphase flow in fractures and channels