Distribution of drugs in polymers loaded by swelling