Wet chemical synthesis of nanostructured semiconductor layers for thin-film solar thermoelectric generator