Determinate multidimensional measure, the extended Carleman theorem and quasi-analytic weights