Probability that an element of a finite group has a square root