Design specific joint optimization of masks and sources on a very large scale