A Lyapunov function approach to the study of the stability of cellular neural networks