Optimal data acquisition in tomography