Optimization and development of a universal flow-based microfluidic gradient generator