An accurate System for automated On-wafer Characterization of Three-port Devices