Emanuel accepts job as White House chief of staff