Longitudinal muon relaxation in spin glasses: from the concentrated to the diluted case