Synthesis, structure and magnetism of three cubane Cu(II) and Ni(II) complexes based on flexible Schiff-base ligands