Crocodiles and alligators once chose vegetables over meat, researchers who studied prehistoric teeth say