Using SPICE for neural network simulation