Production of atomic hydrogen by cosmic rays in dark clouds