The Noether-Lefschetz locus of surfaces in toric threefolds