Two calculation procedures for the determination of composition and mass thickness of thin samples by x-ray spectrometry