Oscillatory dynamics as a mechanism of integration in complex networks of neurons