Nonlinear analysis of the Eckhaus instability: modulated amplitude waves and phase chaos with nonzero average phase gradient