Invariant algebraic surfaces of polynomial vector fields in dimension three