Microfluidic sensor for dynamic surface tension measurement