Mesoscale flow chemistry: A plug-flow approach to reaction optimization