Fabrication, optimization and in-situ characterization of thermally tunable vanadium dioxide nanostructures