Subgoal Discovery Using a Free Energy Paradigm and State Aggregations