How to buy an AOI machine: a practical buyer's guide for quality inspection