Quantitative use of the angular variation technique in studies of tin by X-ray photoelectron spectroscopy