The present invention relates to a process for preparing compounds of general formula I wherein R1 and R2 are defined as in claim 1, the pharmaceutically acceptable salts and the solvates thereof, which may be prepared starting from compounds of general formula II wherein R1 is defined as in claim 1.