Condensation of aromatic aldehydes with keto esters and condensation of salicylaldehydes with malonic acid