Impurity transport in tokamaks in the plateau to Pfirsch–Schlüter regimes