Solution-phase synthesis and properties of thin films and nanocomposites for thermoelectricity