Interatomic Coulombic decay and electron-transfer-mediated decay following triple ionization in Ne2, NeAr, and Ar2