LMC and SMC Cepheids: combining OGLE with DENIS and 2MASS infrared data