Trinuclear and dinuclear Ni(II) complexes constructed by bridging oxygen: crystal structures, magnetic, and thermal properties