X-ray resonance in crystal cavities: realization of Fabry-Perot resonator for hard x rays.