Vertebrate dentitions at the origin of jaws: when and how pattern evolved