Modelling shallow dopant distributions as layered samples for grazing incidence x-ray fluorescence analysis