Borussia Dortmund have completed the signing of Bayern Munich midfielder Sebastian Rode for an undisclosed fee.