The Kundu–Eckhaus equation and its discretizations