Subpixel refinement of Bragg peaks position