Mechanical properties of Mg–RE (RE = Sc, Y, Gd–Tm) solid solutions: first-principles determination