Tuning of the superconducting and ferromagnetic transitions by Cu doping for Ru in GdSr2RuCu2O8