Greek debt deal reached