Periodic smoothing splines