A general criterion for synchronization of incrementally dissipative nonlinearly coupled agents