Tuning transport properties in thermoelectric nanocomposites through inorganic ligands and heterostructured building blocks