Voting ends in controversial poll in northern Iraq