Adaptive crystal optics for high power synchrotron sources