Rapid and accurate measurement of the thickness of thin films by an x-ray fluorescence technique using a new background subtraction method