The Valence of Samarium in the Mixed-Valence Transition in SmSe