Thin film characterization by total reflection x-ray fluorescence