Stability and magnetic properties of Mn-substituted ScN semiconductor from first principles