The compounds of formula (Ib) are prepared by treating a compound of the formula (IV) with an oxidizing agent such as potassium permanganate, potassium dichromate, and the like, preferably potassium permanganate, in the presence of a base and water as the aqueous organic solvent.