Invited Talk: Theories for the emergence of internal representations in neural networks: from perception to navigation