Polycubanes linked withC2,N2, NO, and NS: From insulating to metallic behavior