Template-based electrochemically controlled growth of segmented multimetal nanorods