Comparative studies on electrical and optical properties of iodine-doped (CH)x and (CD)x