Algebro-geometric analogues of Donaldson's polynomials