Thickness uniformity of coated layers or desired profile of target erosion