Abstract: The invention relates to compounds of formula (2) in which R1, R2, R3 and R4 have the meanings indicated in the description, their preparation and their further reaction to give compounds of formula (1), in which A1, A2 and R4 have the meanings indicated in the description. The compounds of the formula (1) are valuable intermediates for the preparation of medicaments.