Iraq says coalition advisers have withdrawn from federal bases, ending first phase of mission