Photoperiodic induction of diapause: opening the black box