A Memristive Multilayer Cellular Neural Network With Applications to Image Processing