Active Exploration for Learning Symbolic Representations