Text this: Calculation of an optimized design of magnetic shields with integrated demagnetization coils.