Ported smoothness regularization to the layer-based framework