Common strategies for light adaptation in the peripheral visual systems of fly and dragonfly