Optimal entrainment of circadian clocks in the presence of noise.