Stability of the HgS molecule and spectroscopy of its low lying electronic states