Schalke have made the signing of Dennis Aogo from Bundesliga rivals Hamburg permanent, giving the Germany international a three-year contract.