Effect of nonlinear gain and filtering on soliton interaction