On the distribution of metals deposited onto the limiter and the liner of tokamaks after long-term operation