A study on the synthesis of ninhydrin derived polycondensed heterocycles and imines as anticancer agents