Modelling of tokamak glow discharge cleaning I: physical principles