BMW agrees to pay US$820m subsidies to China dealers