The Republic of Ireland has qualified for the Euro 2016 tournament in France with a play-off second leg victory over Bosnia-Herzegovina.