Effect of substituents and environment of the spectral and thermodynamic behaviour of some pyrimidine derivatives