Nonlinear commutativity-preserving maps on Hermitian matrices