Conduction electron distributions in europium and gadolinium by soft x-ray spectroscopy