Total reflection X-ray fluorescence of single and multiple thin-layer samples