How to avoid buying a pre-owned vehicle that has been scrapped or written off