Dynamic homogenization of inhomogeneous elastic media based on energy equivalence | Synapse