Martin critical of Irish and UK governments over NI