Dynamic discrete energy-averaged model for magnetostrictive materials