An examination of the ARX as a residual generator for damage detection