How guns became gadgets—lightweight, easy to use, and more effective than ever