Task-Based Information-Theoretic Design of X-Ray Computed Tomography Systems: Detection and Estimation Tasks