Tennis: Federer outguns Djokovic in Shanghai