Modeling structure noncovalent interactions and spectral properties of ionic liquids from density functional theory