Theoretical models for circadian rhythms in Neurospora and Drosophila