Evolution of viviparous reproduction in Paleozoic and Mesozoic reptiles.