Japan infuriates China by agreeing to buy disputed isles