Time-domain and frequency-domain macromodeling: application to package structures