Modelling of impurity flow in the tokamak scrape-off layer