Antiferromagnet to ferromagnet crossover driven by nonmagnetic Co doping in heavy-fermion YbRh3Si7