After spending endless nights making prototypes in a basement, doctors Kjell Nilsson and Gunnar Moa finally solved the riddle