Choosing appropriate solvents for dissolving ionic compounds