Molecular mechanics of photopolymerization of 2,5‐distyrylpyrazine in solid state