Probing electronic, magnetic and structural heterogeneity in advanced materials and Nanostructures with x-ray imaging, scattering and spectroscopic techniques.