Which of the following processes results in the formations of sex cells (gametes) ?