Characterization of magnetic nanostructures using synchrotron based techniques