Critical periods in the development of the Caenorhabditis elegans dauer larva