Spectral and quantum-chemical study of some heteroanalogs of 1,4-bis(5-phenyl-2-azolyl)benzenes