Oxidation state control of solution-processed vanadium oxide thin-films and resistive switching of VO2 thin-film in a metastable state