Magnetotaxis of the Physarum Plasmodium and Construction of a Magnetically Controlled Physarum Logic Gate