Non-destructive phase analysis and residual stresses measurement using grazing angle X-ray diffraction geometry