Tail inverse regression: Dimension reduction for prediction of extremes