Multiresolution calculation of ionic liquids