One-dimensional magnetopolymeric nanostructures with tailored sizes