White lines and d-electron occupancies for the 3d and 4d transition metals.