Pattern discrimination in a hawkmoth: innate preferences, learning performance and ecology