LIII-XAS theory in light rare earth metallic compounds