The garage science behind the stun gun that changed policing