Text this: An Energy-Function-Based Approach for Power System Inertia Assessment