Microfluidic and optofluidic investigation of biological macromolecule phase transistions