Nonlinear interaction of wave trains in a supersonic boundary layer