Hard X-ray spectroscopic nano-imaging of hierarchical functional materials at work.