Constraints on the double-parton scattering cross section from same-sign W boson pair production in proton-proton collisions at \( \sqrt{s}=8 \) TeV