X-RAY inspection and analysis