Asymptotics of Neumann harmonics when a cavity is close to the exterior boundary of the domain