Integrated Fabrication and Magnetic Positioning of Metallic and Polymeric Nanowires Embedded in Thin Epoxy Slabs