X-ray inspection for raw materials