Habit formation viewed as structural change in the behavioral network