Charge transfer in CsCl-structure intermetallic compounds