Dynamical responses to external stimuli for both cases of excitatory and inhibitory synchronization in a complex neuronal network