Life on board a warship entails physical danger, close-knit community, and an unusual combination of cutting-edge technology and generations-old tradition. We asked Jim Carter, the author of Hearts of Steel, to recommend five of the best books on warships—from military history to naval biography.