Forming Electrical Networks in Three Dimensions by Self-Assembly