Polarizability tensor retrieval for magnetic and plasmonic antenna design