A faint object spectrograph for the William Herschel telescope