Fast and flexible live-cell imaging of 2D and 3D cultures in microfluidic chips