Optimally bracing grid frameworks with holes