3d x-ray-absorption lines and the 3d94fn+1 multiplets of the lanthanides.