Ionothermal synthesis and structural transformation targeted by ion exchange in metal-1,3,5-benzenetricarboxylate compounds