Fast multipole methods for the evaluation of layer potentials with locally-corrected quadratures (Journal of Computational Physics: X)