how does a walk through metal detector work