Comparing optimization algorithms for conventional and freeform optical design.