An Algorithm-Driven Approach to Error Analysis for Multidimensional Integration