Robust and High-Performance Machine Vision System for Automatic Quality Inspection in Assembly Processes