Electromagnetic field simulation using 3-D cellular neural networks