The present invention concerns a process for the preparation of a compound of formula (I), wherein the dotted line is a single bond and n is 1 or the dotted line is a double bond and n is 0, and wherein the relative configuration is as shown, in the form of any one of its diastereoisomers or enantiomers or mixtures thereof.