Filtering and Smoothing with Score-Driven Models