Which synthesis method involves the condensation of an aldehyde with a compound bearing an active methylene group under basic or acidic conditions?