Synthesis, characterization, biological screening and corrosion inhibition studies of N,S,O-donor heterocycles and some of their transition metal complexes