XAFS study of the Ce valence in magnetic Ce intermetallic compounds