Astrophysical S factor for the radiative-capture reaction p6Li → 7Beγ