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