Method for producing a tubular hollow body, and tubular hollow body