A Mechanized Error Analysis Framework for End-to-End Verification of Numerical Programs