Optimization of constant-time evolution in multidimensional NMR experiments