during world war two submarine warfare was very important for both sides