Synthesis and spectral studies of new N2S2 and N2O2 Mannich base ligands and their metal complexes