Saltwater crocodiles swam thousands of miles across the Indian Ocean to survive, new research suggests.