Structural and magnetic properties of layered copper(II) coordination polymers intercalating s and f metal ions