Determination of nuclear vertex constants (asymptotic normalization coefficients) for the virtual decays 3He → d + p and 17F → 16O + p and their use for extrapolating astrophysical S-factors of the radiative proton capture by the deuteron and the 16O nucle