Efficient space-time Jacobi rational spectral methods for second order time-dependent problems on unbounded domains