In which layer does the keratinocytes flatten, their nuclei and organelles begin to disintegrate, and they accumulate two types of granules?