Heavy-quark contribution to the proton's magnetic moment