Republic of Ireland surrendered a one-goal lead as they lost 2-1 to hosts France in the round of 16 in Lyon at Euro 2016.