Investigations of electronic and thermoelectric properties of half-Heusler alloys XMgN (X = Li, Na, K) by first-principles calculations