Describe how the confusion matrix is used for model evaluation.