(2014•大兴区二模)已知2x2+7x-1=0,求代数式(x+1)(3x-2)-(x-3)2+1的值.