Stability and Hopf bifurcation analysis of a pair of three-neuron loops with time delays