Reinforcement learning transfer based on subgoal discovery and subtask similarity | Synapse