Correlations of structural, magnetic, and dielectric properties of undoped and doped CaCu3Ti4O12