Elements of soliton theory