Japan stun China to win historic Olympic table tennis gold