Sri Lanka reaches debt-restructuring agreement