High-precision comparison of the antiproton-to-proton charge-to-mass ratio