BMW agrees to pay $820 million to China car dealers, group says