General electromagnetic compatibility analysis for nonlinear microwave integrated circuits