Durable and nontoxic magnets