若|m+1/3|+(n-1/2)^2=0,求多项式m^2+2m^3n+n^2-2m^2-2m^3n+3n^2的值