An Ab Initio Study of Pressure-Induced Reversal of Elastically Stiff and Soft Directions in YN and ScN and Its Effect in Nanocomposites Containing These Nitrides