Model calculation of the electronic structure and spectroscopy of Hg2