Template assisted fabrication of 1-D nanostructures of Nickel, Cobalt, Iron Oxide and Carbon nanotubes and a study on their structural, magnetic and nonlinear optical properties for applications