Shaped X-ray beams by channeling in polycapillary optics