X-Ray Techniques for Nanomaterials in Energy Research