The preparation of 166Er targets for in-beam experiments