Microbeam X-ray Diffraction from the Cross-section of Metallic Materials with Inhomogeneous Structure