How a homemade tool helped advance North Korea’s missile and nuclear programs