Integral Menger curvature for sets of arbitrary dimension and codimension