What was a global war that lasted from 1939 to 1945, when class of submarines built for the Royal Navy?