Quark mass dependence of the nuclear forces