Forecasting recessions using the yield curve