Quantum-chemical study of the electronic structures and spectral properties of oxazole analogs of 1,4-distyrylbenzene and the isomeric distyrylnaphthalenes