Variational problems in SBV