Soft x-ray fluorescence measurements in materials science