CMOS implementation of an analogically programmable cellular neural network