Alexander Zverev has become Germany's first men's singles Olympic tennis champion at Tokyo.