Generalized depletion potentials