What is the purpose of a Punnett square in genetics?