Runge-Kutta-Nyström methods for hyperbolic problems with time-dependent coefficients