Molecular ions: Spectroscopy, structure, and chemistry