A loop-tree basis for metallic surfaces connected to wire