Oscillations and avalanches coexist in brain networks close to criticality