Study of vector boson scattering and search for new physics in events with two same-sign leptons and two jets