A maximin-minimax approach for classifying crop varieties into resistance groups based on yield potential and loss