Simulating and optimizing compound refractive lens-based X-ray microscopes