working of metal detector depend