Optical simulation of adaptive nonlocality distillation