Bayern winger Gnabry signs contract extension