The Euler-Maclaurin expansion and finite-part integrals