Determining the optimal contact length for a metal/multiwalled carbon nanotube interconnect