On a class of variational integrals over BV varieties