Electronic structure of cerium and light rare-earth intermetallics