Obama expects conditions for Mosul ops. by year's end