Characterization and thermoelectric performance of polymer/inorganic hybrid films using spectroscopic and microscopic techniques