Nottingham Forest have completed the signing of Austria international Xaver Schlager from RB Leipzig on a two-year contract.