A technique for fast calculations of capacitance matrices of interconnect structures