A continuous flow system for on demand synthesis and optimization of small molecules