What is the Hardy-Weinberg equation and why it is used?