New species of dinosaur discovered after decades in museum