Structural changes and out-of-sample prediction of realized range-based variance in the stock market