Effect of residual stresses on the stability of bct-5 silicon