Early snakes explored life underground, on land and at sea