Bayern Munich midfielder Joshua Kimmich has signed a four-year contract extension to keep him at the club until 2029.