‘Smart machines’ could treble bomb and shell production capacity in less than a decade