The first shipwrecks associated with the real-life Pirates of the Caribbean have been discovered by scientists in the Bahamas.