Impedance and specific heat of RM4Al8 and RAg6In6 compounds