The correspondence of intermodulation and cross modulation in amplifiers and mixers