The role of triplet state of nitrospiropyran in their photochromic reaction