Transmission of X-rays through curved waveguides