Success in protecting ozone layer offers lessons for future, pope says