In-situ determination of potential profiles in a-Si: H