how whales evolved to dive in the sea