Metrology and inspection systems