Photovoltaic substrates and hafnium based gate dielectrics characterized with total reflection X-ray fluorescence