Transmission electron microscopic studies of n- and p-type doped CdTe