Systematic measurements of proton- and alpha-capture cross sections relevant to the modelling of the p process