Molecular mechanisms underlying the mitosis–meiosis decision