Iraq names new president and prime minister, ending a year of political deadlock