The Korteweg–de Vries equation modified by viscosity for waves in a two‐layer fluid in a channel of arbitrary cross section