Photoabsorption and electron yields of La and Gd in the vicinity of the 3d thresholds