Model-Based Minimum Bayes Risk Decoding for Text Generation