The Trade-Off Between Resolution and Sensitivity in Compound Eyes