Nilpotent normal form for divergence-free vector fields and volume-preserving maps