x-ray optics ray tracing code