Optimized acquisition geometry for X-ray inspection