Kinetics and mechanism of condensation reactions of substituted phenols with carbonyl compounds in different media