Mechanisms of light adaptation in Drosophila photoreceptors