Factors affecting quantitative determinations by x-ray photoelectron spectroscopy