The rate of transient beta frequency events predicts impaired function across tasks and species