ELECTRONIC STRUCTURE OF RARE-EARTH METALS. I. RELATIVISTIC AUGMENTED- PLANE-WAVE CALCULATIONS.