Royals end 12-game losing streak, beat Indians 8-2