A scale of critical exponents for semilinear waves with time-dependent damping and mass terms