Synthesis of analytically pure compounds in flow reactors