A threshold gas Cherenkov detector for the Spin Asymmetries of the Nucleon Experiment