A Methodology for RF modeling of packages with external pin measurements