Self-assembly of designed supramolecular magnetic filaments of different shapes