The solution path of the generalized lasso