X-ray diffraction in a uniformly bent crystal in reflection geometry