Measurements of proton radiative capture cross sections relevant to the astrophysical rp- and γ-processes