On a California tour, Pentagon chief scrutinizes a Navy in flux and a warship gutted by fire