Optimal processing of photoreceptor signals is required to maximize behavioural sensitivity