From clumsy hand cannons to fast-firing muskets, Europe’s slow march toward firearm dominance reshaped centuries of warfare.