Modi leaves for Ireland, U.S.