Residual stresses and magnetic properties of alumina–nickel nanocomposites