Random telegraph signals with time dependent capture and emission probabilities: Analytical and numerical results