Mesogenic low molecular and polymeric hydrazides. I: Synthesis