An apparatus to measure stopping powers for low-energy antiprotons and protons