IOC apologizes to South Korea over Olympics ceremony gaffe