The CX transition in CaKr+ and CaAr+