Algebraic approximation of analytic sets