Ireland poised for Euro 2012 berth after tense Armenia win