Substitution effect on metal-insulator transition in Cu(Ir1-xMx)2S4 (M = Sn, Hf)