On the stability of difference schemes