Engineering of charge carriers via a two-dimensional heterostructure to enhance the thermoelectric figure of merit.