Nonexistence of formal first integrals for general nonlinear systems under resonance