Optimizing triangle mesh lenses for non-uniform illumination with an extended source