Synthesis of multiport resistors with piecewise-linear characteristics: a mixed-signal architecture