On the stability of solitary waves for nonlinear Schr?odinger equations