Molecular hydrogen and its ions in dark interstellar clouds and star forming regions