Solution-processed two-dimensional layered heterostructure thin-film with optimized thermoelectric performance.