Tuning the miscibility of water in imide-based ionic liquids.