SMEXOS: Simulation Methods for X-ray Optical Systems