Astrophysical S factor of the N 14 (p,γ) O 15 reaction at 0.4-1.3 MeV