Adaptive microfluidic gradient generator for quantitative chemotaxis experiments