Analysis of reflex modulation with a biologically realistic neural network