Multiple functions of ionic liquids in the synthesis of three-dimensional low-connectivity homochiral and achiral frameworks.