Uniqueness to inverse acoustic and electromagnetic scattering from locally perturbed rough surfaces