Submarine warfare and intelligence in the Atlantic and Pacific in the Second World War: comparisons and lessons learned for two opponents