Palaeontological evidence reveals convergent evolution of intervertebral joint types in amniotes