A general-purpose electronic model for arbitrary configurations of neurons