Dual feature reduction for the sparse-group lasso and its adaptive variant