Accurate and Efficient Modeling of Interconnects in Lossy Layered Media