Optimizing for Mental Representations in the Evolution of Artificial Cognitive Systems