Constraining the S factor of 15N(p,γ)16O at astrophysical energies