Characterization of microstructures has also been performed using x-ray diffraction (XRD) techniques for many years. XRD can be used to determine the percentages of various phases present in a specimen if they have different crystal structures. For example, the amount of retained austenite in a hardened steel is best measured using XRD (ASTM E 975). If a particular phase can be chemically extracted from a bulk specimen, it can be identified using XRD based on the crystal structure and lattice dimensions. This work can be complemented by EDS and/or WDS analysis where the chemical composition is quantified. But EDS and WDS are difficult to apply to particles less than 2-3 micrometers in diameter. For smaller particles, diffraction techniques can be performed using the TEM for identification and EDS can be performed on small particles if they are extracted from the matrix using replication methods to avoid detection of the matrix along with the precipitate.