Theoretical study of intrinsic defects in CdTe