Nucleophilic aromatic substitution of heterocycles using a high-temperature and high-pressure flow reactor