Bayesian inverse regression for supervised dimension reduction with small datasets