Long-period radial velocity variations of nine M red giants. The detection of substellar companions around HD 6860 and HD 112300