The D-2k R-4 invariants of N=8 supergravity