castilla was enough of an aviation expert to recognize the wreck as that of a boeing b-29 heavy bomber , the same kind of aircraft that had been used to bombard imperial japan in the closing days of the second world war and that had delivered the first nuclear weapons against hiroshima and nagasaki .