Applications of synchrotron X-rays to radiotherapy