Effect of pitching history on the flow topology for freely pitching wings