Phase stability of ScN-based solid solutions for thermoelectric applications from first-principles calculations