In-gap Electronic States Responsible for the Excellent Thermoelectric Properties of Ni-based Half-Heusler Alloys