A new study reveals how some mammals evolved their tusks