Gilmore says Irish, British governments may intervene on NI impasse