Amortized Filtering and Smoothing with Conditional Normalizing Flows