Energy density equations and power flow in structures