How Egypt’s military pulled the plug on Morsi’s regime