Beyond metals: theoretical discovery of semiconducting MAX phases and their potential application in thermoelectrics.