Calculations of an effective solid angle including self-absorption correction applied to gamma-ray spectrometry analysis of natural samples