Spectroscopic factors from one-proton stripping reactions on sd-shell nuclei: experimental measurements and shell-model calculations