The synthesis of a novel magnetic demulsifier and its application for the demulsification of oil-charged industrial wastewaters