Structure and electronic properties of quinone dimers connected with acetylene and diacetylene linkages