Cnoidal wave in a two-level medium: an alternative approach to nonlinear susceptibilities