The magnetic properties of ferrocene based macromolecules