Mitosis is the stage of the cell cycle during which