New 1,2,4‐ and 1,3,4‐oxadiazole materials: synthesis, and mesomorphic and luminescence properties