Battle for Mosul must navigate ethnic rivalries