Network-based stability analysis of electric power systems