Capture cross sections for the astrophysical p process