Avoiding surface and absorption effects in XRD quantitative phase analysis