Recurrent neural networks coupled with linear systems: Observability in continuous and discrete time