gunpowder and its military applications