Longitudinal mode interaction in semiconductor lasers due to nonlinear gain suppression and four-wave mixing