Synthesis and analysis of a novel magnetic surfactant