Metal–insulator switching of vanadium dioxide for controlling spin-wave dynamics in magnonic crystals