Generalized system identification with stable spline kernels