Preparation from compounds with -OH and -COOH adjacent in the same ring or in peri position