Minority carrier blocking to enhance the thermoelectric figure of merit in narrow-band-gap semiconductors