Edge impurity transport study in the stochastic layer of LHD and the scrape-off layer of HL-2A