Variable metric forward-backward algorithm for minimizing the sum of a differentiable function and a convex function