The energy-based method for effective dynamic properties of viscoelastic composite