Solution synthesis of nanostructured transition metal chalcogenides and their electrical and thermal properties