US researchers have found a safe way to 3D print explosives