S-factor of 14N(p,gamma)15O at astrophysical energies