Text this: Optimization of mechanical input power to synchronous generator based on transient stability center-of-inertia: COI angle and COI speed