The nature of photoinduced phase transition and metastable states in vanadium dioxide