The Navy's carriers and submarines might be the most technically sophisticated in the world. But they're also the most expensive.