Optimizing for mental representations in the evolution of artificial cognitive systems