The Riemann–Lovelock curvature tensor