process_qs function

Process the desired sample sizes for optimize_controls()