In general, compounds of formulae (Ia) and (Ib) are prepared by first treating a compound of formula (F) in a protic solvent, such as methanol, with an equimolar amount of a compound of formula (E) with stirring at ambient temperature for about 30 minutes to about an hour, preferably for about 30 minutes.