A magnetic-field-induced change of dynamics from the small molecule behavior to the intermediate case in the S1 state of pyrimidine vapor