Fossil evidence for the origin of the marsupial pattern of tooth replacement