Synthesis, magnetic and spectral studies on transition metal complexes of semicarbazones and thiosemicarbazones