The evolutionary origin of teeth