Using Simulation to Optimize the Design of Adaptive Clinical Trials