f electron character of rare earth and uranium compounds