Formal Weierstrass nonintegrability criterion for some classes of polynomial differential systems in C²