Recent advances in X-ray characterization of materials