Beta-diketone and beta-ketoenamine based molecular squares