A newly discovered dinosaur reveals how the Tyrannosaurus rex got so scary