Electronic structure and the valence state of Yb_{2}Pd_{2}Sn and YbPd_{2}Sn studied by photoelectron and resonant x-ray emission spectroscopies