Fluctuating valence in SmS