Multiple thermal switching effect on the stability of vanadium dioxide films