D-index: an energy-based diagnostic for detecting dynamical transitions in nonstationary time series | Synapse