Review of the role of ionic liquids in two-dimensional materials