The neural basis of rhythm generation in neocortex and brainstem microcircuits