Electric quadrupole interaction at 111Cd and 119Sn in isostructural NiIn and CoSn compounds