Perform optimized Ewald breakups on arbitrary pair potentials