Northern Iraq braces for 500,000 refugees