State space representation of interconnected power systems for dynamic interaction studies