Promoting democracy: past and present lessons for Iran, Egypt and beyond