Mixed-valence state of the rare-earth compounds YbXCu4 ( X = Mg, Cd, In, and Sn): Magnetic susceptibility, x-ray diffraction, and x-ray absorption spectroscopy investigations