Rigidity of square grids with holes