NY man sentenced to 13 years in terrorism case