The layer effect on multi-layer cellular neural networks