A British Airways flight from London to Germany took off in the wrong direction and landed in Scotland, 525 miles away from its destination