A novel numerical method for the extraction of the frequency dependent impedance of arbitrarily-shaped interconnects