Time-resolved observation of photochemical phase transition in polymer liquid crystals