Template‐directed synthesis of hybrid nanowires and nanorods