The probability that $x^m$ and $y^n$ commute in a compact group