A universal way to prepare graphyne derivatives with variable band gap and lithium storage properties