Crystal-field effects and magnetic behavior in RNi5 and RCo5+x rare-earth compounds.