Proposal of a Fabry-Perot-type interferometer for x-rays