Applying Synchrotron SAXS and XAS To Study The Microstructure of Energy Conversion and Storage Materials