FuNToM: Functional Modeling of RF Circuits Using a Neural Network Assisted Two-Port Analysis Method