Coulomb displacement energy and the low-energy astrophysical S17 factor for the 7Be(p,γ)8B reaction