A general x-ray fluorescence spectrometric technique based on simple corrections for matrix effects