On the Cauchy problem for the nonlinear Schrödinger equations with time-dependent linear loss/gain