Nanosegregated composites of an imidazolium salt and a layered inorganic compound: organization of both anions and cations in interlayer space.