Effect of specimen size on the dissipated energy density in compression