Dynamic hysteresis loops of the spin-2 bilayer Ising model