Theoretical Analysis of X-Ray Waveguides