Resonance induced wetting state transition of a ferrofluid droplet on superhydrophobic surfaces