Analysis and design of cellular neural networks