Preparation of compounds containing amino and hydroxy, amino and etherified hydroxy or amino and esterified hydroxy groups bound to the same carbon skeleton from hydroxy amines by reactions involving the etherification or esterification of hydroxy groups